﻿@model FMIS.Models.Team

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Default.cshtml";
}


<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Team</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TeamName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TeamName)
            @Html.ValidationMessageFor(model => model.TeamName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClubId, "Club")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ClubId", String.Empty)
            @Html.ValidationMessageFor(model => model.ClubId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Webpage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Webpage)
            @Html.ValidationMessageFor(model => model.Webpage)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Gender)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Gender)
            @Html.ValidationMessageFor(model => model.Gender)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Division)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Division)
            @Html.ValidationMessageFor(model => model.Division)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HomeShirt)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HomeShirt)
            @Html.ValidationMessageFor(model => model.HomeShirt)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HomeShorts)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HomeShorts)
            @Html.ValidationMessageFor(model => model.HomeShorts)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HomeGoalieshirt)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HomeGoalieshirt)
            @Html.ValidationMessageFor(model => model.HomeGoalieshirt)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AwayShirt)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AwayShirt)
            @Html.ValidationMessageFor(model => model.AwayShirt)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AwayShorts)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AwayShorts)
            @Html.ValidationMessageFor(model => model.AwayShorts)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AwayGoalieshirt)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AwayGoalieshirt)
            @Html.ValidationMessageFor(model => model.AwayGoalieshirt)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

